package com.example.mask.maskmobilesshop.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * 我的收货地址
 * 
 * @ClassName: Address
 * @author: Xlh
 * @date 2017年3月12日 下午7:11:54
 */
@TableName(value = "t_member_address")
public class Address implements Serializable {
	private static final long serialVersionUID = -1143964331352870370L;

	/** 主键ID **/
	@TableId(type = IdType.AUTO)
	private Long id;

	/** 会员ID **/
	@TableField(value = "member_id")
	private Long memberId;

	/** 收货人 **/
	@TableField(value = "contact_user")
	private String contactUser;

	/** 联系电话 **/
	@TableField(value = "contact_tel")
	private String contactTel;

	/** 省份 **/
	@TableField(value = "province")
	private String province;

	/** 城市 **/
	@TableField(value = "city")
	private String city;

	/** 县/区 **/
	@TableField(value = "area")
	private String area;

	/** 详细地址 **/
	@TableField(value = "address")
	private String address;

	/** 是否默认地址 **/
	@TableField(value = "is_default")
	private Integer isDefault;

	/** 创建时间 **/
	@TableField(value = "create_time")
	private Date createTime;

	/** 创建人 **/
	@TableField(value = "create_user")
	private String createUser;

	/** 修改时间 **/
	@TableField(value = "update_time")
	private Date updateTime;

	/** 修改人 **/
	@TableField(value = "update_user")
	private String updateUser;
	
	/** 店铺ID **/
	@TableField(value = "shop_id")
	private Long shopId;
	
	@TableField(exist = false)
	private String addressStr;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getMemberId() {
		return memberId;
	}

	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}

	public String getContactUser() {
		return contactUser;
	}

	public void setContactUser(String contactUser) {
		this.contactUser = contactUser;
	}

	public String getContactTel() {
		return contactTel;
	}

	public void setContactTel(String contactTel) {
		this.contactTel = contactTel;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public Integer getIsDefault() {
		return isDefault;
	}

	public void setIsDefault(Integer isDefault) {
		this.isDefault = isDefault;
	}

	public String getAddressStr() {
		return addressStr;
	}

	public void setAddressStr(String addressStr) {
		this.addressStr = addressStr;
	}

	public Long getShopId() {
		return shopId;
	}

	public void setShopId(Long shopId) {
		this.shopId = shopId;
	}

}
